home *** CD-ROM | disk | FTP | other *** search
/ Chip: 2005 Utilities / CHIP Utilities 2005.7z / CHIP Utilities 2005.iso / docs / freedos / www.samsung.com / satisfaction / inc / main.js < prev   
Text File  |  2004-07-15  |  4KB  |  69 lines

  1. //var page = ["http://www.samsung.com/index.htm","http://www.samsung.com/AboutSAMSUNG/ValuesPhilosophy/index.htm","http://www.samsung.com/AboutSAMSUNG/ValuesPhilosophy/DigitalVision/index.htm","http://www.samsung.com/AboutSAMSUNG/CEO/Chairman/CEOMessage/index.htm","http://www.samsung.com/AboutSAMSUNG/CEO/Chairman/PersonalProfile/index.htm","http://www.samsung.com/AboutSAMSUNG/CEO/Chairman/InthePress/index.htm","http://www.samsung.com/AboutSAMSUNG/CEO/ViceChairman/PersonalProfile/index.htm","http://www.samsung.com/Sitemap/Sitemap.htm","http://www.samsung.com/ContactUs/ContactUs.htm","http://www.samsung.com/AboutSAMSUNG/InvestorRelations/","http://www.samsung.com/AboutSAMSUNG/Careers/","http://www.samsung.com/BusinessPartners/","http://www.samsung.com/Products/Semiconductor/"]    //┴ª┐▄ ╡╔ ╞Σ└╠┴÷
  2. var page = ["/AboutSAMSUNG/ValuesPhilosophy/index.htm","/AboutSAMSUNG/ValuesPhilosophy/DigitalVision/index.htm","/AboutSAMSUNG/CEO/Chairman/CEOMessage/index.htm","/AboutSAMSUNG/CEO/Chairman/PersonalProfile/index.htm","/AboutSAMSUNG/CEO/Chairman/InthePress/index.htm","/AboutSAMSUNG/CEO/ViceChairman/PersonalProfile/index.htm","/Sitemap/Sitemap.htm","/ContactUs/ContactUs.htm","/AboutSAMSUNG/InvestorRelations/","/AboutSAMSUNG/Careers/","/BusinessPartners/","/Products/Semiconductor/","/Products/TFTLCD/"]    //┴ª┐▄ ╡╔ ╞Σ└╠┴÷
  3.  
  4. var url = location.pathname;
  5. var sw = true;
  6. if (url == "/"||url == "") {
  7.     url = "/index.htm";
  8. }
  9.  
  10. for (i=0;i<page.length;i++) {
  11.     if (url.toLowerCase()=="/index.htm"||url.toLowerCase()=="/index_01.htm"||url.toLowerCase()=="/index_02.htm"||url.toLowerCase()=="/index_03.htm")
  12.     {
  13.         sw = false;
  14.         break;
  15.     }
  16.     if (url.toLowerCase().indexOf(page[i].toLowerCase()) != -1) {
  17.         sw = false;
  18.         break;
  19.     }
  20. }
  21. if (sw) {
  22.     document.write ("<table border='0' cellpadding='0' cellspacing='0'>");
  23.     document.write ("    <tr><td height='50'></td></tr>");
  24.     document.write ("    <tr><td style='padding-left:160'>");
  25.     document.write ("        <table width='609' border='0' cellpadding='0' cellspacing='0' style='padding:10'>");
  26.     document.write ("            <tr><td height='2' bgcolor='#A3A3A3'></td></tr>");
  27.     document.write ("            <tr><td bgcolor='#F8F8F8'>");
  28.     document.write ("                <table border='0' cellpadding='0' cellspacing='0'>");
  29.     document.write ("                    <tr><td width='100%'>");
  30.     document.write ("                        <table border='0' cellpadding='0' cellspacing='0'>");
  31.     document.write ("                        <form name='varform' method='post' action='/satisfaction/question2_01.asp'>");
  32.     document.write ("                            <tr><td><img src='/satisfaction/images/arrow_o.gif' width='3' height='5' align='absmiddle'> <b>The information on this page meets my needs.</b></td></tr>");
  33.     document.write ("                            <tr><td height='5'></td></tr>");
  34.     document.write ("                            <tr><td style='padding-left:7'>");
  35.     document.write ("                                    <b style='color:#007CD4'>Agree</b>");
  36.     document.write ("                                    <input type='radio' name='Q1' value='1' style='margin:0 0 -3 10;background-color:#F8F8F8'>");
  37.     document.write ("                                    <input type='radio' name='Q1' value='2' style='margin:0 0 -3 10;background-color:#F8F8F8'>");
  38.     document.write ("                                    <input type='radio' name='Q1' value='3' style='margin:0 0 -3 10;background-color:#F8F8F8'>");
  39.     document.write ("                                    <input type='radio' name='Q1' value='4' style='margin:0 0 -3 10;background-color:#F8F8F8'>");
  40.     document.write ("                                    <input type='radio' name='Q1' value='5' style='margin:0 10 -3 10;background-color:#F8F8F8'>");
  41.     document.write ("                                    <b style='color:#007CD4'>Disagree</b>");
  42.     document.write ("                                </td></tr>");
  43.     document.write ("                            <input type='hidden' name='url'>");
  44.     document.write ("                        </form>");
  45.     document.write ("                        </table>");
  46.     document.write ("                        </td>");
  47.     document.write ("                        <td valign='bottom'><a href='javascript:check()'><img src='/satisfaction/images/btn_submit.gif' width='57' height='14' border='0'></a></td>");
  48.     document.write ("                    </tr>");
  49.     document.write ("                </table>");
  50.     document.write ("                </td></tr>");
  51.     document.write ("            <tr><td height='2' bgcolor='#E8E8E8'></td></tr>");
  52.     document.write ("        </table>");
  53.     document.write ("        </td></tr>");
  54.     document.write ("</table>");
  55.  
  56.     url = location.pathname;
  57.     document.varform.url.value=url;
  58. }
  59.  
  60. function check() {
  61.     var obj = document.varform;
  62.     sw = check_radio(obj);
  63.     if (sw) {
  64.         win = window.open("about:blank","win_01","width=377,height=200");
  65.         obj.target = "win_01";
  66.         obj.submit();
  67.     }
  68. }
  69.